/*
 * LogCat.cpp
 *
 *  Created on: 2012/9/23
 *      Author: apple
 */

#ifdef ANDROID
#include <wild/android/LogCat.h>

#include <android/log.h>



#define  LOG_TAG    "*wild platform*"
#define  LOGI(...)  __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#define  LOGE(...)  __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)

namespace wild
{
namespace android
{

void LogCat::LogMsg(eLOG_LEVEL lev, const char* msg)
{
	switch(lev)
	{
	case L_DEBUG:
		LOGI(msg);
		break;
	case L_WARNING:
		LOGI(msg);
		break;
	case L_ERROR:
		LOGI(msg);
		break;
	}
}


}
}
#endif